﻿<Window x:Class="Visualizers.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" MinHeight="800" MinWidth="800">
    <DockPanel>



        <Menu DockPanel.Dock="Top" >
            <MenuItem Header="File">
                <MenuItem Header="Download Images" Click="DownLoadImages"/>
                <!--Command="{Binding DownloadImages}"/>-->
            </MenuItem>
        </Menu>

        <StatusBar DockPanel.Dock="Bottom">
            <TextBlock TextWrapping="NoWrap" TextTrimming="CharacterEllipsis" Text="{Binding Status}"/>
        </StatusBar>

        <ListBox IsSynchronizedWithCurrentItem="True" DockPanel.Dock="Left"
                     ItemsSource="{Binding ImageList}"
                     SelectedItem="{Binding SelectedImage}">

            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <TextBlock Text ="{Binding TagName}" Height="20" />
                        <Border BorderThickness="2" BorderBrush="Black" HorizontalAlignment="Center" >
                            <Image Source="{Binding Thumbnail}" Height="120" Width="160" Stretch="Uniform" />
                        </Border>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

        <Grid DockPanel.Dock="Right">
            <StackPanel>
                <TextBlock Text="{Binding SelectedImage.TagName}" Height="20" />
                <TextBlock Text="{Binding Path=SelectedImage.TagId}" Height="20" />
            </StackPanel>
        </Grid>

    </DockPanel>
</Window>
